import Vue from 'vue'
const files = require.context('./function', false, /\.js$/)
const $z = {}
files.keys().forEach((key) => {
	$z[key.replace(/(\.\/|\.js)/g, '')] = files(key).default
})
// $z挂载到uni对象上
uni.$z = $z
Vue.prototype.$z = $z;